package com.qt.collection.myset;



import com.qt.collection.Student;

import java.util.HashSet;
import java.util.Set;

public class SetDemo01 {
    public static void main(String[] args) {
        Set<Student> s = new HashSet<>();
        Student s1 = new Student("张三", 18);
        Student s2 = new Student("张三", 18);
        Student s3 = new Student("张三", 18);

        System.out.println(s.add(s1));
        System.out.println(s.add(s2));
        System.out.println(s.add(s3));





    }


}
